﻿@{
    ViewBag.Title = "Index";
}


<a href="@Url.Action("CustomerDetail", "Design")?a=cDetail" data-block="cDetail" class="formBtn dBlock" onclick="callboxCDetail($(this).attr('href')); return false;">ผู้เดือดร้อน</a>

<a href="@Url.Action("Customer", "Design")?a=customer" data-block="customer" class="formBtn dBlock" onclick="callboxcustomer($(this).attr('href')); return false;">ผู้เดือดร้อน</a>

<a href="@Url.Action("History", "Design")?a=history" data-block="history" class="formBtn dBlock" onclick="callboxhistory($(this).attr('href')); return false;">ประวัติการแจ้งเรื่อง</a>

<a href="@Url.Action("AddGetOperating", "GroupList")?a=add" data-block="add" class="formBtn dBlock" onclick="callboxadd($(this).attr('href')); return false;">เลือกช่องทางการติดต่อ</a>


<script>
    function callboxCDetail(link) {
        console.log(link);
        $.colorbox({
            iframe: true,
            width: "550px",
            height: "500px;",
            fastIframe: false,
            href: link
        });
    }

    function callboxcustomer(link) {
        console.log(link);
        $.colorbox({
            iframe: true,
            width: "550px",
            height: "500px;",
            fastIframe: false,
            href: link
        });
    }

    function callboxhistory(link) {
        console.log(link);
        $.colorbox({
            iframe: true,
            width: "550px",
            height: "500px;",
            fastIframe: false,
            href: link
        });
    }

    function callboxadd(link) {
        console.log(link);
        $.colorbox({
            iframe: true,
            width: "550px",
            height: "500px;",
            fastIframe: false,
            href: link
        });
    }
</script>